@(formulario: Form[GrupoPesquisa], campus: List[Campus])

@import tags._
@import helper._
@import helper.twitterBootstrap._
@import helpers.Seguranca.InformacoesUsuarioHelper._
@import helper.{FieldConstructor}
@implicitField = @{ FieldConstructor(bootstrap.form.bootstrap.f) }

@main {

<div class="row">
		<div class="span12">
			<div class="page-header">
				<h1>Cadastro de Grupos de Pesquisa</h1>
			</div>
			
			@helper.form(action = routes.GrupoPesquisaController.cadastrar(), 'style -> "margin:0;"){
				@helper.inputText(formulario("nome"), 'id -> "nome", 'class -> "span6", '_label -> "Nome do Grupo: ", '_showConstraints -> false, '_showErrors -> true)
				
							
				<div class="clearfix" id="idCurso_field">
					<label for="idCampus">Escolha o seu Campus:</label>
					<div class="input">
						<select id="idCampus" name="idCampus" class="span5">
							@for(campi <- campus) {
							  <option value="@campi.id">@campi.nome</option>
							}						
						</select>
						<span class="help-inline"></span>
						<span class="help-block"></span>
					</div>
				</div>			
				
				
				<button type="submit" class="btn btn-primary">Cadastrar Grupo</button>
				&nbsp;
				<a class="btn" href="@routes.GrupoPesquisaController.index" >Cancelar</a>
			}
			
			
		</div>
		
	</div>

}

